package com.easysale.modelview;

import java.io.Serializable;

import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;

import com.easysale.domain.Product;

@SuppressWarnings("serial")
@JsonAutoDetect(getterVisibility=Visibility.ANY, fieldVisibility=Visibility.NONE, setterVisibility=Visibility.NONE)
public class ProductResponse implements Serializable {
    private boolean success;
    private Product product;
    
    public ProductResponse(boolean success, Product product) {
        this.success = success;
        this.product = product;
    }

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
}
